//
//  TLRewardsHeaderCCell.m
//  WXReader
//
//  Created by huaya on 2025/9/6.
//  Copyright © 2025 Andrew. All rights reserved.
//

#import "TLRewardsHeaderCCell.h"

@interface TLRewardsHeaderCCell ()
@property (weak, nonatomic) IBOutlet UIImageView *statusImgView;
@property (weak, nonatomic) IBOutlet UILabel *bonusLab;
@property (weak, nonatomic) IBOutlet UILabel *dayLab;

@end

@implementation TLRewardsHeaderCCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(TLSignTaskDetailModel *)model{
    if (model) {
        _model = model;
//        rwzx_yqd
        
        _bonusLab.text = [NSString stringWithFormat:@"+ %@",model.rewardCoins];
        
        if (model.taskStatus.intValue == 0) {
            //未完成
            [self.statusImgView setImage:[UIImage imageNamed:@"rwzx_zb"]];
        }else{
            //已完成
            [self.statusImgView setImage:[UIImage imageNamed:@"rwzx_yqd"]];
        }
        
        _dayLab.text = model.taskName;
        
    }
}

@end
